package com.yonyou.gmmc.service.information.model;

import java.util.Date;
import javax.persistence.*;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

@Table(name = "TM_CAR_KNOWLEDGES")
public class TmCarKnowledges {
    @Id
    @Column(name = "CK_ID")
    @SequenceGenerator(name="",sequenceName="SEQ_TM_CAR_KNOWLEDGES")
    private Integer ckId;

    @Column(name = "CATALOG_ID")
    private Short catalogId;

    @Column(name = "TITLE")
    private String title;

    @Column(name = "CONTENT")
    private String content;

    @Column(name = "USER_ID")
    private Integer userId;

    @Column(name = "CREATE_DATE")
    private Date createDate;

    @Column(name = "UPDATE_DATE")
    private Date updateDate;

    @Column(name = "IS_ORIGINAL")
    private Short isOriginal;
    
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "PUBLISH_DATE")
    private Date publishDate;

    @Column(name = "INDEX_IMAGE")
    private String indexImage;

    @Column(name = "LIST_IMAGE")
    private String listImage;

    @Column(name = "STATUS")
    private Short status;

    @Column(name = "CONTENT_URL")
    private String contentUrl;

    /**
     * @return CK_ID
     */
    public Integer getCkId() {
        return ckId;
    }

    /**
     * @param ckId
     */
    public void setCkId(Integer ckId) {
        this.ckId = ckId;
    }

    /**
     * @return CATALOG_ID
     */
    public Short getCatalogId() {
        return catalogId;
    }

    /**
     * @param catalogId
     */
    public void setCatalogId(Short catalogId) {
        this.catalogId = catalogId;
    }

    /**
     * @return TITLE
     */
    public String getTitle() {
        return title;
    }

    /**
     * @param title
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * @return CONTENT
     */
    public String getContent() {
        return content;
    }

    /**
     * @param content
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * @return USER_ID
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * @return CREATE_DATE
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * @param createDate
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * @return UPDATE_DATE
     */
    public Date getUpdateDate() {
        return updateDate;
    }

    /**
     * @param updateDate
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    /**
     * @return IS_ORIGINAL
     */
    public Short getIsOriginal() {
        return isOriginal;
    }

    /**
     * @param isOriginal
     */
    public void setIsOriginal(Short isOriginal) {
        this.isOriginal = isOriginal;
    }

    /**
     * @return PUBLISH_DATE
     */
    public Date getPublishDate() {
        return publishDate;
    }

    /**
     * @param publishDate
     */
    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    /**
     * @return INDEX_IMAGE
     */
    public String getIndexImage() {
        return indexImage;
    }

    /**
     * @param indexImage
     */
    public void setIndexImage(String indexImage) {
        this.indexImage = indexImage;
    }

    /**
     * @return LIST_IMAGE
     */
    public String getListImage() {
        return listImage;
    }

    /**
     * @param listImage
     */
    public void setListImage(String listImage) {
        this.listImage = listImage;
    }

    /**
     * @return STATUS
     */
    public Short getStatus() {
        return status;
    }

    /**
     * @param status
     */
    public void setStatus(Short status) {
        this.status = status;
    }

    /**
     * @return CONTENT_URL
     */
    public String getContentUrl() {
        return contentUrl;
    }

    /**
     * @param contentUrl
     */
    public void setContentUrl(String contentUrl) {
        this.contentUrl = contentUrl;
    }
}